package com.yindian.cos.easy.security.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 第三方登录获取access_token失败时抛出
 *
 * @author zhangchuanhao
 * @create 2018/11/20
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class AccessTokenException extends AuthenticationException {

    private String error;

    public AccessTokenException(String message) {
        super(message);
    }

    public AccessTokenException(String message, Throwable throwable) {
        super(message, throwable);
    }

    public AccessTokenException(String message, String error) {
        super(message);
        this.error = error;
    }
}
